package com.easy.dao;

import com.easy.bean.Cases;
import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IUserDao {
    List<User>getUserByUsername(String username);
    List<User> getUserUsername(User user);

    List<User>getUser(@Param("user") User user,@Param("page") Page page);

    int addUser(User user);

    User getUserById(int id);
    int delUser(int id);

    int editUser(User user);
    int getCount(@Param("user") User user);
    User getImg(User user);

    int handleRegister(User user);
    User select(@Param("username") String username,@Param("password") String password);

};
